﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace N03_11HCA_HTTTHD.Models
{
    public class ThongTinDanhNhapTaiKhoan
    {
        public ThongTinDanhNhapTaiKhoan(Object ID, Object TenDangNhap, Object IDLoaiTK, Object IDLoaiTV)
        {
            this.ID1 = ID;
            this.IDLoaiTK1 = IDLoaiTK;
            this.IDLoaiTV1 = IDLoaiTV;
            this.TenDangNhap1 = TenDangNhap;

            listQuyen = null;
            if (ID !=null)
            {
                Data_DAO_DTO_Lib.PHANQUYEN_DAO pqDAO = new Data_DAO_DTO_Lib.PHANQUYEN_DAO();
                listQuyen = pqDAO.LayDanhSachPhanQuyenTuNguoiDung((int)ID);
            }
        }

        private List<int> listQuyen;

        public List<int> ListQuyen
        {
            get { return listQuyen; }
        }

        private Object ID;

        public Object ID1
        {
            get { return ID; }
            set { ID = value; }
        }
        private Object TenDangNhap;

        public Object TenDangNhap1
        {
            get { return TenDangNhap; }
            set { TenDangNhap = value; }
        }
        private Object IDLoaiTK;

        public Object IDLoaiTK1
        {
            get { return IDLoaiTK; }
            set { IDLoaiTK = value; }
        }
        private Object IDLoaiTV;

        public Object IDLoaiTV1
        {
            get { return IDLoaiTV; }
            set { IDLoaiTV = value; }
        }
    }
}